﻿using System;
using System.Collections.Generic;

using System.Web;

namespace NhanAi.App_Code
{
    public class NAConstants
    {

        public const int ALL_LANGUAGE = 3;
        public const int LANGUAGE_EN=1;
        public const int LANGUAGE_VI = 2;

        public const int ROLE_ADMIN = 7;
        public const int ROLE_AUTHOR = 3;
        public const int ROLE_USER = 1;
        public const int ROLE_FOLLOWER = 15;

        public const int POST_ATT_NORMAL = 0;
        public const int POST_ATT_NEW = 1;
        public const int POST_ATT_FEATURE = 2;

        public const int POST_STA_POST=1;
        public const int POST_STA_DRAFT=2;
        public const int POST_STA_DELETE=4;
        public const int EXCERPT_LEN = 200;
        public static bool HasFlag(int value, int flag)
        {
            return (value & flag) == flag;
        }
    }
}